package com.main;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableMethodCache(basePackages = "com.main")//jetcache启用缓存的主开关
@ServletComponentScan//过滤器
@EnableCreateCacheAnnotation//jetcache启用缓存的主开关		用于激活@CreateCache注解的使用
//@EnableAsync//开启异步功能
@EnableTransactionManagement//开启事务
public class EasyRentApplication {

    public static void main(String[] args) {
        SpringApplication.run(EasyRentApplication.class, args);
    }

}
